package com.moxigua.iotbox.bean;

import java.util.List;

/**
 * Created by Junerver on 2017/6/6.
 * Feature: 设备状态的response
 * Updated:
 */

public class ResponseDeviceStatusAction extends BaseAction {

    /**
     * tags : {"clientID":0,"packetID":9}
     * value : [{"deviceID":1,"status":1},{"deviceID":4,"status":0},{"deviceID":2,"status":1},{"deviceID":3,"status":1}]
     */

    private TagsEntity tags;
    private List<ValueEntity> value;

    public TagsEntity getTags() {
        return tags;
    }

    public void setTags(TagsEntity tags) {
        this.tags = tags;
    }

    public List<ValueEntity> getValue() {
        return value;
    }

    public void setValue(List<ValueEntity> value) {
        this.value = value;
    }

    public static class TagsEntity {
        /**
         * clientID : 0
         * packetID : 9
         */

        private int clientID;
        private int packetID;

        public int getClientID() {
            return clientID;
        }

        public void setClientID(int clientID) {
            this.clientID = clientID;
        }

        public int getPacketID() {
            return packetID;
        }

        public void setPacketID(int packetID) {
            this.packetID = packetID;
        }
    }

    public static class ValueEntity {
        /**
         * deviceID : 1
         * status : 1
         */

        private int deviceID;
        private int status;

        public int getDeviceID() {
            return deviceID;
        }

        public void setDeviceID(int deviceID) {
            this.deviceID = deviceID;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }

    @Override
    public String toString() {
        return "ResponseDeviceStatusAction{" +
                "tags=" + tags +
                ", value=" + value +
                '}';
    }
}
